using System.Collections.Generic;

namespace NopSolutions.NopCommerce.LuceneHelper.Tasks
{
    public interface ITask
    {
        void DoTask(IndexManager indexManager, SearchManager searchManager, IndexWriterWrapper indexer);

        LuceneIndexType IndexType { get; }

        bool RebuildIndex { get; }

        void AddToQueue(IList<ITask> tasks);

        void DoTask(IndexManager indexManager, SearchManager searchManager);
    }
}
